//% color="#FF8C00" iconWidth=50 iconHeight=40
namespace SEN0370{

    //% block="读取液位传感器[PIN]" blockType="boolean"
    //% PIN.shadow="normal"   PIN.defl="pin1" 
    export function readSEN0370(parameter: any, block: any) {
        let pin=parameter.PIN.code
        console.log(parameter)
        Generator.addImport(`from dfrobot_sen0370 import sen0370_handle`)
        Generator.addCode(`sen0370_handle(${pin})`)
    }

}
